<template>
  <div class="app-container">
    <ht-search-form
      v-show="showSearch"
      :dictMap="dictMap"
      :queryParams="queryParams"
      :outputQueryParams="queryParams"
      :formOptions="formOptions"
      :advOptions="[]"
      defaultEventKey="entryTable"
    ></ht-search-form>
    <ht-table
      ref="dataTable"
      :showSerialNumber="false"
      :multi-select="false"
      :dictMap="dictMap"
      :reqConfig="reqConfig"
      :queryParams="queryParams"
      :tableBindColumns="tableBindColumns"
      defaultEventKey="entryTable"
    ></ht-table>
  </div>
</template>
<script>
import { apiUrlConfig } from "@/api/cnaps/ccms/903/digital_certificate_history_query";
import { listPageMixin } from "@/libs/listPageMixin";
export default {
  name: "DigitaCertificateHistoryQuery",
  mixins: [listPageMixin],
  components: {},
  data() {
    return {
      reqConfig: apiUrlConfig,
      dataList: [],
      //数据字典
      searchFormDictList: ["PKG_TYPE", "CHANGE_TYPE"],
      showSearch: true,
      // 查询参数
      queryParams: {
        bankCode: "",
        workdate: "",
        workdate2: "",
      },
      formOptions: [],
      tableBindColumns: [
        { label: `交易流水号`, prop: "id", align: "center" },
        {
          label: `直接参与机构号`,
          prop: "bankCode",
          align: "center",
        },
        {
          label: `报文类型`,
          prop: "pkgType",
          align: "center",
          dictCode: "PKG_TYPE",
        },
        {
          label: `变更日期`,
          prop: "chgDate",
          align: "center",
          type: "date",
        },
        {
          label: `变更时间`,
          prop: "chgTime",
          align: "center",
          type: "date",
        },
        {
          label: `变更类型`,
          prop: "chgType",
          align: "center",
          dictCode: "CHANGE_TYPE",
        },
      ],
    };
  },
  mounted() {
    this.formOptions = [
      {
        type: "input",
        prop: "bankCode",
        defaultAttr: {
          label: "参与机构号",
          placeholder: "请输入参与机构号",
        },
      },
      {
        type: "dates",
        nameObj: {
          startTimeName: "workdate",
          endTimeName: "workdate2",
        },
        defaultAttr: {
          label: "变更日期",
          placeholder: ["请输入开始日期", "请输入结束日期"],
          format: "yyyy-MM-dd",
          valueFormat: "yyyyMMdd",
        },
      },
    ];
  },
  methods: {},
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}
</style>
